<?php
/**
 * Groups module for XOOPS
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code 
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The Groups Project http://code.google.com/p/groupsforxoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         groups
 * @since           2.3.0
 * @author          Hui Xiao < xh.8326@gmail.com >
 * @version         $Id: form.cp.group.search.php Sat Jul 18 13:01:51 CST 2009
 */

if (false === defined("XOOPS_ROOT_PATH")) {exit();}

$_cat = array();
if ( $cat_list ) {
    foreach ( $cat_list as $k=>$v ) {
        $_cat[$k] = $v["cat_name"];
    }
}
$form = new XoopsForm("", "form", "", "get");

$cat_id = new XoopsFormSelect("分类: ","cat_id",@$_GET["cat_id"]);
$cat_id->addOption("0","--请选择--");
$cat_id->addOptionArray($_cat);
$form->addElement($cat_id);

$group_status = new XoopsFormSelect("状态: ","group_status",@$_GET["group_status"]);
$group_status->addOption("-1","--请选择--");
$group_status->addOptionArray($group_status_rows);
$form->addElement($group_status);

$group_name = new XoopsFormText("圈子名: ","group_name",16,255,@$_GET["group_name"]);
$form->addElement($group_name);

$form->addElement(new XoopsFormButton("","",_SEARCH,"submit"));
$form->assign($xoopsTpl);